from dendritetics_classes import *

cells = int(from_config("cells","configure"))
for i in range(cells):
    print "Running simulation %d of %d\n" % (i+1,cells)
    c = Ccell("configure")
    print "\t\t--configured\n"
    c.exercise()
    print "\t\t--exercised with score %d\n" % (c.score)
    dir_name = "../../data/%d-Hz/%05d-%06d" % (c.NEURON_frequency,c.score,random.randint(0,999999))
    get_back_to_code_path = "../../../code/"
    c.archive(dir_name,get_back_to_code_path)
    print "\t\t--archived to %s\n" % (dir_name)
print "-----SIMULATIONS COMPLETED SUCCESSFULLY----------\n" 
